﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Warehouse.Infrstructre.Migrations
{
    /// <inheritdoc />
    public partial class 报损库位 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ProductsID",
                table: "OutProducts");

            migrationBuilder.AddColumn<string>(
                name: "Batch",
                table: "OutShips",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Binlocation",
                table: "OutShips",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "OutPrice",
                table: "OutShips",
                type: "decimal(18,2)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "OutProuductId",
                table: "OutShips",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OutProuductNum",
                table: "OutShips",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "InjureStock",
                table: "InProducts",
                type: "int",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Batch",
                table: "OutShips");

            migrationBuilder.DropColumn(
                name: "Binlocation",
                table: "OutShips");

            migrationBuilder.DropColumn(
                name: "OutPrice",
                table: "OutShips");

            migrationBuilder.DropColumn(
                name: "OutProuductId",
                table: "OutShips");

            migrationBuilder.DropColumn(
                name: "OutProuductNum",
                table: "OutShips");

            migrationBuilder.DropColumn(
                name: "InjureStock",
                table: "InProducts");

            migrationBuilder.AddColumn<int>(
                name: "ProductsID",
                table: "OutProducts",
                type: "int",
                nullable: true);
        }
    }
}
